﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GlxRRSReporter.DailyReporter.common
{
    public static class StringExtensions
    {
        private static List<string> alphabet = new List<string>() {"a","b","c","d","e","f", "g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z" };

        public static string NextAlphabetCharacter(this string dt)
        {
            string result = "A";
            string lo = dt.ToLower();
            int idx = alphabet.IndexOf(lo);
            if (idx >= alphabet.Count)
            {
                idx = 0;
            }
            result = alphabet[idx];
            return result;
        }
    }
}
